//返回
function goback(){
    tlocation(base_html_redirect+'/workflow/lc-product/lc-product-list.html');
}



//保存
function updateLcProduct(){
    submitBForm('defaultForm',workflowModules+'/lcProduct/update',base_html_redirect+'/workflow/lc-product/lc-product-list.html',null,"PUT");
}

$('#defaultForm').bootstrapValidator({
    message:'此值不是有效的'
});

$(document).ready(function(){
    datetimeInit();
    var lc_product_id = GetQueryString("lc_product_id");
    //加载表单数据
    ajaxBRequestCallFn(workflowModules+'/lcProduct/get/'+lc_product_id,{},function(result){
        $('#lc_product_id').val(result.data.lc_product_id);
        $('#name').val(result.data.name);
        $('#content').val(result.data.content);
        $('#l_key').val(result.data.l_key);
        $("#md5").val(result.data.md5);
    });
});